|
|
Presentation |
What is the graph for?
The graph part can be used to measure how quantities in a model vary. Most parts have graphable properties, and the graph is a useful way of communicating information about these properties visually.
|
Setting up a graphThe steps below outline how to create a graph.
1. Choosing a part to graphBefore you can draw a graph you must first choose which part (or parts) you are interested in measuring. Any part or link with graphable properties can be graphed.
To target a particular part:
2. Setting the y-axis valueThe property measured on the y-axis is set using the property picker that appears just above it. Click on the underlined word 'Property' and chose the property to be measured from the list that appears.
If one of the parts to be traced does not have the chosen property, the trace target tool will be highlighted in red and no trace will appear.
3. Setting the x-axisBy default the x-axis is set to represent simulation time (a 'Global' property since it a property of the scenes).
However, there are three property categories that can be represented by the x-axis:
Click on the arrow next to the property picker to choose the property category:
A global property is one that does not relate to any part in the scene, but belongs to the scene itself. If this option is chosen, all the global scene properties will be listed in the property picker. Time is currently the only global property.
A local part property is one that belongs to each part being graphed.
Graphing against a local part property will result in each part targeted for a trace being graphed against its own value of the property.
For example, if two traces have been set up to graph beaker A and beaker B, the y-axis has been set to measure mass of solid, and the x-axis set to measure (local part property) temperature, then the graph will display the following two traces:
Again, If at any time the property chosen does not exist for one of the traces, the trace target tool will be highlighted in red and no trace will appear.
A specific part property is one that belongs to a targeted part. When this option is chosen a target tool appears next to the property picker so that traces can be plotted against a specific part's property values.
For example, you may wish to graph the level of a burette against the pH in a beaker. To do this:
|
Graph tracesThe graph part can display up to four traces at any one time. Hence four part properties can be investigated simultaneously.Each trace has a simple target tool that is displayed to the left of the y-axis (though by default the graph part only has one target tool visible). Next to the target tool is a colour indicator that shows the colour of the trace on the graph.
Adding a traceTo add a trace to the graph:
Customising tracesEach trace on the graph can be customised. These options, that include colour and line style, can be found in the Traces section of the graph property pane.
Restarting the tracesClear the graph and restart all of the traces on the graph by pressing the restart button.
|
Interacting with the graphThere are several ways of interacting with the graph part to investigate the data that has been traced.
Panning can be used to look at areas on the graph outside the visible range. Pan the display in any direction by clicking and dragging anywhere on the graph grid.
To fit (show) all the data that has been collected by the graph for values on the x-axis, press the fit to x-axis button on the graph which appears when the cursor is over the graph part. This will re-scale the x-axis until all the relevant data can be seen.
To fit (show) all the data that has been collected by the graph for values on the y-axis, press the fit to y-axis button on the graph which appears when the cursor is over the graph part. This will re-scale the y-axis until all the relevant data can be seen.
Zooming can be used to focus on particular areas of a graph. The zoom buttons appear when the cursor is over the graph part
Press the zoom in button on the graph to make everything on the graph appear larger. Each time the button is pressed, the graph is enlarged by 10%.
Press the zoom out button on the graph to make everything on the graph appear smaller. Each time the button is pressed, the graph is reduced by 10%.
Use this button to restart the graph. When pressed, all existing data (traces) will be removed from the graph and restarted.
|
Altering axes ranges
The x- and y-axis ranges can be set in the X-axis and Y-axis sections in the graph's Properties pane. The units used on each axis can also be set there.
|
Data limits
There is a limit to the amount of data that can be displayed on the graph at any one time. This limit is 10000 data points (individual points plotted on the graph) by default. This equates to the graph plotting data for approximately 10 minutes before restarting. The data limit can be set in the Advanced section of the graph control pane. Please note, If this limit is set to a very large value , the speed of the graph simulation may slow down significantly.
If the amount of data on the graph exceeds this limit, then only the most recent 10000 points will be stored.
|
The following properties can be found in the Properties pane when the part is selected.
|
The four possible graph traces are listed here. Click on any of the traces in the list to select and use the options detailed below to customise it.
|
|
Use this option to turn the display of the selected trace on and off. When the option is checked, a target tool and a trace will appear by the graph.
|
|
Use this option to change the colour of the selected trace.
|
|
Use this option to change the style of the selected trace. Choose from lines, lines & points and points.
|
|
Use this option to change the thickness of the selected trace.
|
|
Use this option to change the size of the points on the selected trace. |
|
To change the y-axis range, enter new values in the max and min fields (or use the arrow buttons to increase/decrease the values).
The unit can be changed by clicking on the underlined unit and choosing the required option.
|
|
The gridlines on a graph can be configured. The frequency of the major gridlines can be set and the display of the minor gridlines can be turned on and off. (The number of minor gridlines between two major gridlines is set automatically). |
|
This control duplicates the control on the x-axis on the graph part. It is used to chose the property type to graph:
|
|
To change the x-axis range, enter new values in the max and min fields (or use the arrow buttons to increase/decrease the values).
The unit can be changed by clicking on the underlined unit and choosing the required option.
|
|
The gridlines on a graph can be configured. The frequency of the major gridlines can be set and the display of the minor gridlines can be turned on and off. (The number of minor gridlines between two major gridlines is set automatically). |
|
Use this option to change the colour of the major gridlines.
|
|
Use this option to change the colour of the minor gridlines.
|
|
Use this option to change the colour of the x-axis.
|
|
Use this option to change the colour of they-axis. |
|
Set the data limit - the maximum number of data points the graph stores before it restarts. If this limit is very large, the speed of the graph simulation may slow down significantly. |
The mini-toolbar appears alongside this part when the cursor moves over it. The following mini-toolbar items are available for this part:
|
|
Drag area
|
Click and drag on this area to move the part. |
|
|
Fit to x-axis |
Use this button to fit (show) all the data that has been collected by the graph for values on the x-axis |
|
|
Fit to y-axis |
Use this button to fit (show) all the data that has been collected by the graph for values on the y-axis |
|
|
Zoom in |
Press the zoom in button on the graph to make everything on the graph appear larger. Each time the button is pressed, the graph is enlarged by 10%. |
|
|
Zoom out |
Press the zoom out button on the graph to make everything on the graph appear smaller. Each time the button is pressed, the graph is reduced by 10%. |
|
|
Restart |
Use this button to restart the graph. When pressed, all existing data (traces) will be removed from the graph and restarted. |
|
|
Shortcut menu |
Use this button to open the part's shortcut menu. |